package Entities;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;
@Entity
@Table(name = "Informe_Reposicion_Area")
public class Entity_InformeReposicionArea implements Serializable{
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue
	@Column(name = "id_informe_reposicion_area")
	private int idInformeReposicionArea;
	@Column
	private Date fecha;
	@OneToMany(cascade = CascadeType.ALL)
	@JoinColumn(name = "id_informe_reposicion_area")
	private List<Entity_InsumoAReponer> insumosAReponer;
	

	//GET & SET
	public int getIdInformeReposicion() {
		return idInformeReposicionArea;
	}

	public void setIdInformeReposicion(int idInformeReposicion) {
		this.idInformeReposicionArea = idInformeReposicion;
	}

	public Date getFecha() {
		return fecha;
	}

	public void setFecha(Date fecha) {
		this.fecha = fecha;
	}

	public List<Entity_InsumoAReponer> getInsumosAReponer() {
		return insumosAReponer;
	}

	public void setInsumosAReponer(List<Entity_InsumoAReponer> insumosAReponer) {
		this.insumosAReponer = insumosAReponer;
	}
	

}
